/*
 * @Date: 2024-03-25 14:51:53
 * @LastEditors: lyx
 * @LastEditTime: 2024-03-25 14:56:23
 * @FilePath: \taro-template3\src\packageA\components\ChatTable\modal.tsx
 * @Description:
 */
import React from "react";
import { Dialog } from "@nutui/nutui-react";
import Container from "./container";
import "./modal.less";

interface IProps {
  open: boolean;
  tableData: any;
  chatInfo: {
    msgId: string;
    dataId: string;
  };
  onCancel: () => void;
}
const ChatTable: React.FC<IProps> = ({
  open,
  chatInfo,
  tableData,
  onCancel,
}) => {
  return (
    <Dialog
      className="chat-luckysheet-modal"
      title="查看报表"
      visible={open}
      footer={null}
      onClose={onCancel}
    >
      {tableData && (
        <Container chatInfo={chatInfo} tableData={tableData}></Container>
      )}
    </Dialog>
  );
};

export default ChatTable;
